package com.jt.www.domain.vo;

import com.jt.www.domain.po.MarketerInfoEntity;
import com.jt.www.domain.po.TeamFounderEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(description = "团队创始人信息")
public class FounderInfoVO {

    @ApiModelProperty(value = "创始人ID")
    private Long teamFounderId;

    @ApiModelProperty(value = "创始人userCode")
    private String userCode;

    @ApiModelProperty(value = "工号")
    private String marketerNo;

    @ApiModelProperty(value = "营销人员姓名")
    private String marketerName;

    @ApiModelProperty(value = "营销人员手机号码")
    private String marketerPhone;

    @ApiModelProperty(value = "营销人员邮箱")
    private String marketerEmail;

    @ApiModelProperty(value = "渠道编码")
    private String channelCode;

    @ApiModelProperty(value = "渠道名称")
    private String channelName;

    @ApiModelProperty(value = "分支机构编码")
    private String branchCode;

    @ApiModelProperty(value = "分支机构名称")
    private String branchName;

    @ApiModelProperty(value = "部门编码")
    private String departCode;

    @ApiModelProperty(value = "部门名称")
    private String departName;


    public static FounderInfoVO convertEntity(TeamFounderEntity founder, MarketerInfoEntity marketer) {

        FounderInfoVO vo = new FounderInfoVO();

        vo.setTeamFounderId(founder.getId());
        vo.setUserCode(founder.getUserCode());
        vo.setMarketerNo(founder.getMarketerNo());
        vo.setMarketerName(marketer.getMarketerName());
        vo.setMarketerEmail(marketer.getMarketerEmail());
        vo.setMarketerPhone(marketer.getMarketerPhone());
        vo.setChannelCode(marketer.getChannelCode());
        vo.setChannelName(marketer.getChannelName());
        vo.setBranchCode(marketer.getBranchCode());
        vo.setBranchName(marketer.getBranchName());
        vo.setDepartCode(marketer.getDepartCode());
        vo.setDepartName(marketer.getDepartName());

        return vo;
    }


    public Long getTeamFounderId() {
        return teamFounderId;
    }

    public void setTeamFounderId(Long teamFounderId) {
        this.teamFounderId = teamFounderId;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public String getMarketerNo() {
        return marketerNo;
    }

    public void setMarketerNo(String marketerNo) {
        this.marketerNo = marketerNo;
    }

    public String getMarketerName() {
        return marketerName;
    }

    public void setMarketerName(String marketerName) {
        this.marketerName = marketerName;
    }

    public String getMarketerPhone() {
        return marketerPhone;
    }

    public void setMarketerPhone(String marketerPhone) {
        this.marketerPhone = marketerPhone;
    }

    public String getMarketerEmail() {
        return marketerEmail;
    }

    public void setMarketerEmail(String marketerEmail) {
        this.marketerEmail = marketerEmail;
    }

    public String getChannelCode() {
        return channelCode;
    }

    public void setChannelCode(String channelCode) {
        this.channelCode = channelCode;
    }

    public String getChannelName() {
        return channelName;
    }

    public void setChannelName(String channelName) {
        this.channelName = channelName;
    }

    public String getBranchCode() {
        return branchCode;
    }

    public void setBranchCode(String branchCode) {
        this.branchCode = branchCode;
    }

    public String getBranchName() {
        return branchName;
    }

    public void setBranchName(String branchName) {
        this.branchName = branchName;
    }

    public String getDepartCode() {
        return departCode;
    }

    public void setDepartCode(String departCode) {
        this.departCode = departCode;
    }

    public String getDepartName() {
        return departName;
    }

    public void setDepartName(String departName) {
        this.departName = departName;
    }
}
